﻿<%@ Page Title="Employee Time Sheet Entry" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="EmployeeTimeSheetEntry.aspx.cs" Inherits="Employee_EmployeeTimeSheetEntry" %>
<%@ Register Src="~/Control/TimeEntry.ascx" TagName="TimeEntry" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">  
    <title>Employee TimeSheet Entry</title>
    <script src="../include/js/form.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="bodyContentTop" Runat="Server">
     <h2>Employee TimeSheet Entry</h2>    
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="bodyContent" Runat="Server">
<div class="elements_inner_wrapper">
        <div id="contentBody">
            <div class="section">
                <div class="seperator">
                </div>
                <fieldset class="formouter">
                    <table cellpadding="3" cellspacing="3" width="100%">
                        <tr>
                            <td colspan="2">
                                <div class="row_curved" id="divSchoolList" runat="server" title="Example:UCSM, MIT, YTU">
                                    <label for="<%=ddlSchoolList.ClientID%>" class="mand_red">
                                        <asp:Label runat="server" Text="Selected School Name" ID="Label2" /></label>
                                    <div class="field">
                                        <span class="indicator">
                                            <asp:DropDownList  AutoPostBack="True" runat="server" ID="ddlSchoolList"  Height="23px" Width="288px" />
                                             
                                            &nbsp;&nbsp;
                                            <asp:Button runat="server" ID="btnViewEmployeeList" Text="Show" OnClick="btnViewEmployeeList_Click" />
                                            &nbsp;&nbsp;
                                            <asp:Button runat="server" ID="btnAddNewEmployee" Text="New" OnClick="btnAddNewEmployee_Click" />
                                        </span>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" valign="top">
                                <div class="row_curved" id="div5" runat="server">
                                    <asp:Label runat="server" ID="lblTopMessage" Text="" Font-Bold="true" Font-Size="Large"
                                        ForeColor="Red"></asp:Label>
                                    <asp:ValidationSummary ID="vsEmployeeAttandance" runat="server" ValidationGroup="EmployeeAttandance"
                                        ShowSummary="True" HeaderText="Please complete all highlighted fields of the form. Thank you."
                                        CssClass="errorSummary" />
                                    <div id="Div1" runat="server" visible="false">
                                        SchoolKey:<asp:Label Visible="true" runat="server" Text="-1" ID="lblSchoolKey" /><br />
                                        lblUserAccountKey:<asp:Label Visible="true" runat="server" Text="-1" ID="lblUserAccountKey" /><br />                                       
                                        lblEmployeeTimeSheetKey:<asp:Label Visible="true" runat="server" Text="-1" ID="lblEmployeeTimeSheetKey" /><br />
                                        lblEmployeeProfileKey:<asp:Label Visible="true" runat="server" Text="-1" ID="lblEmployeeProfileKey" />                                     
                                    </div>
                                </div>
                            </td>
                        </tr>
                    </table>
                    <table>
                            <tr>
                                <td>
                                        <div class="row_curved" id="div2" runat="server" title="Example:UCSM, MIT, YTU">
                                        <label for="<%=ddlEmployee.ClientID%>" class="mand_red">
                                            <asp:Label runat="server" Text="Select Employee" ID="Label1" /></label>
                                        <div class="field">
                                            <span class="indicator">
                                                <asp:DropDownList   runat="server" ID="ddlEmployee"  CssClass="inputBox_medium" Height="23px" Width="287px" />                                               
                                            </span>
                                        </div>
                                        <div class="clear">
                                        </div>
                                     </div>
                                     <div class="row_curved" id="divDayCode" runat="server">
                                            <label>
                                                <asp:Label ID="Label3" Text="Day Name" runat="server"></asp:Label></label>
                                            <div class="field">
                                                <span class="indicator">
                                                    <asp:DropDownList ID="ddlDayCode"   runat="server"   CssClass="inputBox_medium" />
                                                </span>
                                            </div>
                                            <div class="clear">
                                            </div>
                                        </div>
                                     <div class="row_curved" id="div4" runat="server">
                                        <label for="<%=objStart.ClientID%>" class="mand_red">
                                            <asp:Label runat="server" Text="Time In" ID="lblStartDate" Width="120px" /></label>
                                            <span class="indicator">
                                                <uc1:TimeEntry ID="objStart" runat="server"/>                                                 
                                            </span>
                                        <div class="clear">
                                        </div>
                                    </div>
                                    <div class="row_curved" id="div6" runat="server">
                                        <label for="<%=objEnd.ClientID%>" class="mand_red">
                                            <asp:Label runat="server" Text="Time Out" ID="lblEndDate" Width="120px" /></label>
                                            <span class="indicator">
                                                <uc1:TimeEntry ID="objEnd" runat="server"/>     
                                            </span>
                                        <div class="clear">
                                        </div>
                                    </div>
                                     <div class="row_curved" id="div3" runat="server">
                                        <label for="<%=txtRemark.ClientID%>" class="mand_red">
                                            <asp:Label runat="server" Text="Remark" ID="lblRemark" Width="140px" /></label>
                                            <span class="indicator">
                                                <asp:TextBox ID="txtRemark" Width="300px" runat="server" 
                                                 TextMode="MultiLine" Rows="3" Height="100px" />                                                    
                                            </span>
                                        <div class="clear">
                                        </div>
                                    </div>
                                </td>
                            </tr>
                    </table>
                    <div class="row_curved" style="background-color: #efefef;width: 550px;" id="divButton" runat="server">
                        <label>
                            &nbsp;</label>
                        <div class="field" style="width: 900px;">
                            <span class="indicator">
                                <asp:Button ID="btnSingIn" CssClass="button_normal_submit" Text="Sign In" ValidationGroup="EmployeeAttandance"
                                   runat="server" OnClick="btnSingIn_Click" /> 
                                    &nbsp;&nbsp;
                                       <asp:Button ID="btnSingOut" CssClass="button_normal_submit" Text="Sign Out" ValidationGroup="EmployeeAttandance"
                                   runat="server" OnClick="btnSingOut_Click" />                                                   
                                    &nbsp;&nbsp;<asp:Button runat="server" ID="btnBack" Text="Back to List" OnClick="btnBack_Click"
                                        CssClass="button_normal_submit" />
                                </span>
                        </div>
                        <div class="clear">
                        </div>
                    </div>
                    <div class="row_curved" id="divMessage" runat="server">
                        <label>
                            &nbsp;</label>
                        <div class="field">
                            <span class="indicator">
                                <asp:Label ID="lblMessage" runat="server"></asp:Label>
                            </span>
                        </div>
                        <div class="clear">
                        </div>
                    </div>
                    
                </fieldset>
            </div>
        </div>
    </div>

    <script type="text/javascript">

        SetSumitNormalButtonAttribute(document.getElementById('<%=btnSingIn.ClientID%>'));
        SetSumitNormalButtonAttribute(document.getElementById('<%=btnSingOut.ClientID%>'));
              
    </script>
    
</asp:Content>


